<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <button @click="count++">+</button>
    <button @click="count--">-</button>
    <span>当前显示：{{count}}</span>
</div>
<script src="../js/vue.js"></script>
<script type="application/javascript">
    const app = new Vue({
        el: "#app",
        data: {
            count: 0,
        },
        methods: {
            addone: function () {
                console.log("xxxx")
                this.count++
            },
            delone: function () {
                console.log("xxxx")
                this.count++
            }
        }

    })
</script>
</body>
</html>
